25c5298b6586f1398ead5c480d68e2a0103c2279,javac-support/src/main/java/com/webcohesion/enunciate/javac/decorations/DecoratedElements.java,DecoratedElements,findInheritedDocComment,#Element#,82

Before Change


            List<ExecutableElement> methods = ElementFilter.methodsIn(superType.getEnclosedElements());
            for (ExecutableElement candidate : methods) {
              if (delegate.overrides((ExecutableElement) e, candidate, typeElement)) {
                String docComment = delegate.getDocComment(candidate);
                if (docComment != null && !docComment.trim().isEmpty()) {
                  return docComment;
                }

After Change


            List<ExecutableElement> methods = ElementFilter.methodsIn(superType.getEnclosedElements());
            for (ExecutableElement candidate : methods) {
              if (overrides((ExecutableElement) e, candidate, typeElement)) {
                String docComment = candidate instanceof ElementAdaptor ? ((ElementAdaptor)candidate).getDocComment() : delegate.getDocComment(candidate);
                if (docComment != null && !docComment.trim().isEmpty()) {
                  return docComment;
                }